package com.biaobiaoqi.scoreanalysis.hibernate.bean;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

@Entity
public class TeacherClazzCourseRelation extends BaseBean {
	
	@ManyToOne
	@JoinColumn(nullable=false)
	private Teacher teacher;
	@ManyToOne
	@JoinColumn(nullable=false)
	private Course course;
	@ManyToOne
	@JoinColumn(nullable=false)
	private Clazz clazz;
	
	
	public Teacher getTeacher() {
		return teacher;
	}
	public void setTeacher(Teacher teacher) {
		this.teacher = teacher;
	}
	public Course getCourse() {
		return course;
	}
	public void setCourse(Course course) {
		this.course = course;
	}
	public Clazz getClazz() {
		return clazz;
	}
	public void setClazz(Clazz clazz) {
		this.clazz = clazz;
	}
}
